# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=downloader-cli
pkgver=0.3.4
pkgrel=1
pkgdesc="Simple downloader with an awesome progressbar"
url="https://github.com/deepjyoti30/downloader-cli"
arch="noarch"
license="MIT"
depends="py3-urllib3 py3-downloader-cli"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="py3-$pkgname-pyc py3-$pkgname:py3:noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/deepjyoti30/downloader-cli/archive/$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

py3() {
	depends="python3"
	pkgdesc="Python library for $pkgname"

	amove usr/lib/python3*
}

sha512sums="
e652850888ff6cf3c0f381056f22eb7120c8b666c03eeb607c8dd2fd827d4f4c2fb5191666e0da0899f6b95d3a402f03672ccd2000ad4a87dc6b067d4372b906  downloader-cli-0.3.4.tar.gz
"
